package com.yazi.mxz.common.service;

import com.myframework.smhj.common.exception.MyException;
import com.myframework.smhj.hibernate.Searching;
import com.myframework.smhj.hibernate.Page;
import com.myframework.smhj.hibernate.dao.Service;
import com.yazi.mxz.common.entity.beans.Article;

public interface ArticleService extends Service<Article>  {
	
	
	/**
	 * 获取某分类下的文章(包括子类下的)
	 * @param catId
	 * @param si
	 * @return
	 */
	Page<Article> listByRootCatId(long catId, Searching si);
	
	/**
	 * 删除店铺文章
	 * @param storeId
	 * @param articleIds
	 */
	void removeByStoreId(long storeId, long[] articleIds);
	
	/**
	 * 添加/修改店铺文章
	 * @param storeId 店铺ID
	 * @param article 文章(构建对象)
	 * @return
	 */
	Article addOrEditByStoreId(long storeId, Article article) throws MyException; 
	
}
